package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
@Getter
@Setter
public class Salary {
    /** */
    private Long id;

    /** 工资金额*/
    private BigDecimal money;

    /** 年份*/
    private Integer year;

    /** 月份*/
    private Integer month;

    /** 员工*/
    private Employee employee;

    /** 发放方式*/
    private SystemDictionaryItem payout;

    public String toJson() {
        return JSON.toJSONString(this);
    }
}